Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: XML HTTP Request - how to transform the result?
~Nicole Fezwesonnivu 20.Jan.04 02:34 PM a Web browser
Domino Designer All Releases All Platforms


Here is working lotusscript which does not use any of the Domino6 new XML features, you can do same thing using Domino lotusscript xmlparsers in case you have not MSXML files installed.


Sub Initialize
Dim s As New NotesSession
Dim doc As NotesDocument
Dim objHttp As Variant
Dim response As String
Dim request As String
Set db = s.CurrentDatabase
Set doc = s.DocumentContext
Dim objXMLHTTP, objXMLDOM, objTitles, objURLs, i
Set objHttp = CreateObject("Microsoft.XMLHTTP")
url = |http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllThreadedweb?readviewentries|
req = |<?xml version="1.0" encoding="UTF-8" ?><test>iiii</test>|
objHttp.open "POST", url, False, "", ""
objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
objHttp.send(req)
Set xmlDoc = CreateObject("Msxml2.DOMDocument")
xmlDoc.loadXML (objHttp.ResponseText)
Set xmlLst = xmlDoc.getElementsByTagName("viewentry")
For i = 0 To xmlLst.length - 1
Set newdoc = New notesdocument(db)
newdoc.form="docfromxml"
Set xmlNode = xmlLst.Item(i)
Set att=xmlnode.childnodes
Forall child In att
Call newdoc.replaceitemvalue(child.nodename,child.text)
End Forall
Call newdoc.save(True,False)
Next
End Sub




XML HTTP Request - how to transform... (~George Minkroz... 19.Jan.04)
. . RE: XML HTTP Request - how to trans... (~Nicole Fezweso... 20.Jan.04)
. . RE: XML HTTP Request - how to trans... (~Kirk Elreterod... 19.Jan.04)
. . . . RE: XML HTTP Request - how to trans... (~George Minkroz... 19.Jan.04)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS